package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 活动任务对象 xhlj_activity_task
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_activity_task")
@Entity
@Table(name = "xhlj_activity_task")
@SailTable(comment = "活动任务表", indexs = {})
public class XhljActivityTask implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_activityTask_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_activityTask_list";
    /**
     * 任务ID
     */
    @TableId(value = "task_id", type = IdType.AUTO)
    @Id
    private Integer taskId;
    /**
     * 任务模版ID
     */
    @SailColumn(comment = "任务模版ID",type = "int", defaultValue = "NULL")
    @Column(name = "activity_task_template_id")
    private Integer activityTaskTemplateId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @SailColumn(comment = "创建人sys_user（大会管理员/活动负责人）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 活动ID
     */
    @SailColumn(comment = "活动ID",type = "int", defaultValue = "NULL")
    @Column(name = "activity_id")
    private Integer activityId;
    /**
     * 任务周期类型（0=限时任务，1=每日任务，2=限定任务）
     */
    @Column(name = "task_cycle_type")
    @SailColumn(comment = "任务周期类型（0=限时任务，1=每日任务，2=限定任务）",type = "char(3)", defaultValue = "NULL")
    private String taskCycleType;
    /**
     * 完成标识（二维码/打卡图片）
     */
    @Column(name = "finish_image")
    @SailColumn(comment = "完成标识（二维码/打卡图片）",type = "text", defaultValue = "NULL")
    private String finishImage;
    /**
     * 完成标识（验证码）
     */
    @Column(name = "finish_code")
    @SailColumn(comment = "完成标识（验证码）",type = "varchar(100)", defaultValue = "NULL")
    private String finishCode;
    /**
     * 完成标识（地点）
     */
    @Column(name = "finish_map")
    @SailColumn(comment = "完成标识（地点）",type = "varchar(100)", defaultValue = "NULL")
    private String finishMap;
    /**
     * 任务开始时间
     */
    @Column(name = "start_time")
    @SailColumn(comment = "任务开始时间",type = "datetime", defaultValue = "NULL")
    private Date startTime;
    /**
     * 任务结束时间
     */
    @Column(name = "end_time")
    @SailColumn(comment = "任务结束时间",type = "datetime", defaultValue = "NULL")
    private Date endTime;
    /**
     * 发布状态（0=未发布，1=已发布）
     */
    @Column(name = "publish_status")
    @SailColumn(comment = "发布状态（0=未发布，1=已发布）",type = "char(3)", defaultValue = "0")
    private String publishStatus;
    /**
     * 创建时间
     */
    @Column(name = "created_time")
    @SailColumn(comment = "创建时间",type = "datetime", defaultValue = "CURRENT_TIMESTAMP")
    private Date createdTime;
    /**
     * 删除标志
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标志",type = "char(1)", defaultValue = "0")
    private String delFlag;
    /**
     * 任务状态（0=进行中，1=已结束）
     */
    @Column(name = "task_status")
    @SailColumn(comment = "任务状态（0=进行中，1=已结束）",type = "char(3)", defaultValue = "0")
    private String taskStatus;
}
